package com.lx.sync.api.feign;

import com.lx.sync.api.dto.SyncDataDTO;
import com.lx.sync.api.dto.PageResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;
import java.util.List;

@FeignClient(name = "data-sync-engine-provider", path = "/api/sync")
public interface DataSyncFeignClient {

    @PostMapping("/data")
    PageResult<SyncDataDTO> getSyncData(@RequestBody SyncDataDTO syncDataDTO);

    @GetMapping("/maxUpdateTime")
    Long getMaxUpdateTime();
}
